* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
  background-color: #f5f7fa;
  color: #333;
  font-size: 14px;
  -webkit-app-region: drag;
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  background: #1890ff;
  color: white;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  -webkit-app-region: drag;
}

.header h1 {
  font-size: 16px;
  font-weight: 500;
}

.window-controls {
  display: flex;
  -webkit-app-region: no-drag;
}

.window-control {
  margin-left: 15px;
  cursor: pointer;
  font-size: 16px;
}

.main-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  -webkit-app-region: no-drag;
}

.status-card {
  background: white;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.status-title {
  font-size: 16px;
  margin-bottom: 15px;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 12px;
  background-color: #52c41a;
  color: white;
}

.status-badge.inactive {
  background-color: #f5222d;
}

.printer-list {
  background: white;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.printer-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.printer-card:last-child {
  border-bottom: none;
}

.printer-info {
  flex: 1;
}

.printer-name {
  font-weight: 500;
  color: #222;
  margin-bottom: 5px;
}

.printer-status {
  font-size: 12px;
  color: #999;
}

.printer-default {
  background: #e6f7ff;
  color: #1890ff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 10px;
}

.button {
  background: #1890ff;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s;
}

.button:hover {
  background: #40a9ff;
}

.log-container {
  background: white;
  border-radius: 6px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.log-title {
  font-size: 16px;
  color: #222;
}

.log-clear {
  color: #1890ff;
  font-size: 12px;
  cursor: pointer;
  background: none;
  border: none;
}

.log-content {
  height: 200px;
  overflow-y: auto;
  border: 1px solid #f0f0f0;
  padding: 10px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.5;
}

.log-entry {
  margin-bottom: 5px;
  word-break: break-all;
}

.log-entry.info {
  color: #1890ff;
}

.log-entry.error {
  color: #f5222d;
}

.log-entry.success {
  color: #52c41a;
}

.refresh-btn {
  margin-left: 10px;
  background: none;
  border: none;
  color: #1890ff;
  cursor: pointer;
  font-size: 14px;
}

.no-printers {
  text-align: center;
  padding: 20px;
  color: #999;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #999;
} 